package com;
class Anim{}
class FeedAnim extends Anim{}
class Primate extends FeedAnim{}


public class GenericTest<T> {
    Object[] mContainer ;
    private T mInstance ;
    int size =0;
    int cap = 50;
    public GenericTest(){
        mContainer = new Object[cap];
    }

    public void add(T t){
      mContainer[size++] = t;
    }

    public T get(int index){
        return (T)mContainer[index];
    }

    public void judege(T t){
        if(t instanceof Integer){

        }
    }

    public static void main(String[] args){
        GenericTest<? super Number> aa = new GenericTest<>();
        aa.add(1);
        aa.add(1f);
    }
}
